package com.bondex.charter.maindata.pojo.api;

import com.fasterxml.jackson.annotation.*;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

/**
 * 查询返回结果的共通值
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Getter
@Setter
public class QueryBaseVO {

	private String code;

	/**
	 * 存放多语言名称
	 */
	private Object name;
	//private String name;
	private String nameEN;

	@JsonIgnore
	private String dataType;//排序时使用的值

	@JsonIgnore
	private int sortIndexOf;//排序时使用的值

	@SerializedName(value = "nameI18n", alternate = "name_i18n")
	private Map<String, String> name_i18n;//多语言

	@JsonProperty("nameI18n")
	@JsonAlias("name_i18n")
	public Map<String, String> getName_i18n() {
		return name_i18n;
	}

	public void setName_i18n(Map<String, String> name_i18n) {
		this.name_i18n = name_i18n;
	}
}